package com.javasm.entity;

import lombok.Getter;

/**
 * @author gfs
 * @version 0.1
 * @className ReturnCode
 * @descriptioin:
 * @date 2024/11/22 15:01
 * @since jdk11
 */
@Getter
public enum ReturnCode {

    QUERY_SUCCESS(10000,"查询成功"),
    QUERY_NO_DATA(10010,"没有数据"),
    REQ_NAME_OK(20001,"用户名可用"),
    REQ_NAME_NO_OK(20002,"用户名重复"),
    LOGIN_SUCCESS(20010,"登录成功"),
    LOGIN_FAILED_NAME_PWD(20011,"用户名或密码错误"),
    LOGIN_FAILED_JUMP(20012,"用户已离职"),
    LOGIN_FAILED_REST(20013,"用户休假中");


    private Integer code;
    private String msg;
    private ReturnCode(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

}
